package com.sgai.zero_robot.pojo;

import java.io.Serializable;

public class AlarmInfo implements Serializable {
    private  String msg;
    private  String key;
    private  String source;
    private  boolean has;
    private  long time;

    public AlarmInfo(String msg, String key, boolean has,long time,String source){
        this.msg=msg;
        this.key=key;
        this.has=has;
        this.time=time;
        this.source=source;
    }

    public AlarmInfo() {
    }

    public String getMsg() {
        return msg;
    }

    public String getKey() {
        return key;
    }

    public boolean isHas() {
        return has;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setHas(boolean has) {
        this.has = has;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    @Override
    public String toString() {
        return "AlarmInfo{" +
                "msg='" + msg + '\'' +
                ", key='" + key + '\'' +
                ", source='" + source + '\'' +
                ", has=" + has +
                ", time=" + time +
                '}';
    }
}
